﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OleDb;
using System.Data.Common;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.Configuration;


namespace planetExpressLib
{
    public class constelacionCAD
    {
        String conexion = ConfigurationManager.AppSettings["DataDirectory"].ToString();
        
        public void insert(constelacionEN cons)
        { }
        public void update(constelacionEN cons)
        { }
        public void delete(constelacionEN cons)
        {
            SqlConnection conn = new SqlConnection("DatabaseConnection");

            DataSet bdvirtual = new DataSet();

            SqlDataAdapter da = new SqlDataAdapter("select * from constelacion where id= " + cons.IdCons, conn);
            da.Fill(bdvirtual, "constelacion");

            DataTable t = new DataTable();
            t = bdvirtual.Tables["constelacion"];

            

            //SqlCommand comando = new SqlCommand ("Delete from constelacion where idCons = "+ cons.IdCons,conn);
        }
        public constelacionEN getConstelacion(constelacionEN cons)
        { return null; }
    }
}